<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>我的订单</title>
    <link rel="stylesheet" type="text/css" href="/Public/Home/styles/shoppingcart.css"/>
</head>
<body>
<div id="outside">
    <br>
    <div id="inside">
        <div class="logo"><img src="/Public/Home/images/third-logo.png" alt=""/></div>
        <div class="logo"><h1>&nbsp;&nbsp;我的订单</h1></div>
        <div id="right-top">
                <span>
                <empty name="Think.session.id">
                    <a href="{:U('Index:login')}">登录</a>
                    <span class="second-floor-menu-span">|</span>
                    <a href="{:U('Index:register')}">注册</a>
                    <else />
                    <a href="#">{$user}，您好！</a>
                </empty>| <a href="{:U('Index:shoppingcart')}">购物车</a>
                </span>
        </div>
    </div>
    <hr>
</div>
<div id="outContent">
        <div id="content">
            <table>
                <tr>
                    <th class="td3">订单号</th>
                    <th class="td4">商品名称</th>
                    <th class="td3">订单金额</th>
                    <th class="td3">订单状态</th>
                </tr>
                <foreach name="data" item="vo" key="k">
                    <tr>
                        <td class="td3">{$vo.id}</td>
                        <td class="td4">
                            <foreach name="data[$k]['goods1']" item="varr">
                                {$varr}<br>
                            </foreach>
                        </td>
                        <td class="td3">{$vo.total}</td>
                        <td class="td3">
                            <if condition="$vo.state eq 1 ">已通过审核
                                <elseif condition="$vo.state eq 0"/>未审核
                                <else />已失效
                            </if>
                        </td>
                    </tr>
                </foreach>
            </table>
        </div>
        <br>
        <br>
        <div id="bottom">
            <div id="bottom-right"><button onclick="location='{:U('/Index/Index/',array('sdasfsaf',rand()))}'">返回主页</button></div>
        </div>
</div>
</body>
</html>